<div class="coluna tamanho12">
	<h3>Faturas</h3>
</div>

<table width="100%">
    <tr>
        <th>Nº</th>
        <th>Data Vencimento</th>
        <th>Data Pagamento</th>
        <th>Usuário</th>
        <th>Valor R$</th>
        <th></th>
    </tr>
    <?php if ( !count($this->paginator) > 0) : ?>
    <tr align="center"><td colspan="5">NENHUM REGISTRO</td></tr>
    <?php endif; ?>
    <?php foreach($this->paginator as $fatura) : ?>
    <tr>
        <td><?php echo $fatura->nu_fatura; ?></td>
        <td><?php echo $fatura->dt_vencimento; ?></td>
        <td><?php echo $fatura->dt_fatura; ?></td>
        <td><?php echo $fatura->findParentRow('Usuario')->nome; ?></td>
        <td><?php echo $fatura->valor; ?></td>
        <td>
        	<a href="<?php echo $this->baseUrl();?>/fatura/edit/id_fatura/<?php echo $fatura->id_fatura?>">
        		<img title="Editar" alt="Editar" src="<?php echo $this->baseUrl()?>/assets/images/actions/edit.png" border="0">
        	</a>
        </td>
    </tr>
    <?php endforeach; ?>
    <tr align="center">
    	<td colspan="6">
			<?php echo $this->paginator; ?>
    	</td>
    </tr>
</table>

<div class="actions">
    <div class="esquerda">
        <a href="javascript:history.back();" class="button" title="voltar">Voltar</a>
    </div>
    &nbsp;
    <div class="direita">
        <a href="<?php echo $this->baseURL() ?>/fatura/create" class="button" title="Cadastro">Cadastro</a>
    </div>
</div>